﻿@model DauGiaApp.Models.ThongTinTimKiem
<link href="@Url.Content("~/Content/TimKiemNangCao.css")" rel="stylesheet" type="text/css" />           

<script src="../../Scripts/D4Scripts/searchajax.js" type="text/javascript"></script>
<script type="text/javascript" src="../../Scripts/jquery-1.6.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.11.js"></script>

<link rel="stylesheet" type="text/css" href="../../Content/datetimepicker/jquery.ui.datetimepicker.css" />
<link rel="stylesheet" type="text/css" href="../../Content/jquery-css/jquery-ui-1.8.13.custom.css" />
<script type="text/javascript" src="../../Scripts/datetimepicker/jquery.ui.datetimepicker.js"></script>

<script type="text/javascript">
    $(document).ready(function () {
        //$('#ThoiGianKetThuc').datepicker();
        $("#btn_tim_kiem_nang_cao").click(function () {
            mysearch();
        });
        $('#ThoiGianKetThuc').datetimepicker();
        
    });

</script>
<fieldset>
    <legend>>> </legend>
    <form id="search-nang-cao">
    <div class="sptimkiem">
        <h3>
            @Html.Label("Tùy chọn: ")</h3>
    </div>
    <table>
        <tr>
            <td>
                <span>Tên Sản Phẩm  </span>
            </td>                                
            <td>
                <div class="sptimkiem">        
                    @Html.TextBox("TenSanPham")
                    @Html.ValidationMessage("TenSanPham")
                </div>
            </td>        
            <td>
                <span>Loại Sản Phẩm  </span>
            </td>                                
            <td>
                <div class="sptimkiem">        
                    @Html.DropDownList("MaLoaiSanPham", new SelectList(ViewBag.MaLoaiSanPham, "Value", "Text"), "Tất cả các loại...")
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <span>Giá từ  </span>
            </td>                                
            <td>
                <div class="sptimkiem">        
                    @Html.DropDownList("GiaTu", new SelectList(ViewBag.GiaTu, "Value", "Text"), "Giá từ...")
                </div>
            </td>        
            <td>
                <span>Giá đến  </span>
            </td>                                
            <td>
                <div class="sptimkiem">        
                    @Html.DropDownList("GiaDen", new SelectList(ViewBag.GiaDen, "Value", "Text"), "Giá đến...")
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <span>Thời gian kết thúc  </span>
            </td>                                
            <td>
                <div class="sptimkiem">        
                    @Html.TextBox("ThoiGianKetThuc", "", new { @id = "ThoiGianKetThuc" })
                </div>
            </td>        
            <td>
                &nbsp;
            </td>                                
            <td>
                @*<div class="sptimkiem">
                        <button id="btn_tim_kiem_nang_cao">
                            Tìm Kiếm</button>
                </div>*@
            </td>
        </tr>
    </table>
    
    </form>
    <div class="sptimkiem">
        <center>
            <button id="btn_tim_kiem_nang_cao">
                Tìm Kiếm</button></center>
    </div>
</fieldset>
